<!DOCTYPE html>
<html lang="en-us">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

  	<meta property="og:title" content=" Jmeter &middot;  我的博客" />
  	<meta property="og:site_name" content="我的博客" />
  	<meta property="og:url" content="/my_technology/10/" />
    
    
  	<meta property="og:type" content="article" />

    <meta property="og:article:published_time" content="2020-06-09T20:29:30&#43;08:00" />

    
    

  <title>
     Jmeter &middot;  我的博客
  </title>

    <meta name="description" content="这里是付佳康的个人博客" />

    <meta name="HandheldFriendly" content="True" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <link rel="shortcut icon" href="/my_technology/images/favicon.ico">
	  <link rel="apple-touch-icon" href="/my_technology/images/apple-touch-icon.png" />
    
    <link rel="stylesheet" type="text/css" href="/my_technology/css/screen.css" />
    <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400|Inconsolata" />


    
      
          <link href="/my_technology/index.xml" rel="alternate" type="application/rss+xml" title="我的博客" />
      
      
    
    <meta name="generator" content="Hugo 0.68.3" />

    <link rel="canonical" href="/my_technology/10/" />

     
</head>
<body class="nav-closed">
<div id="particles-js"></div>
  


 <div class="site-wrapper">



<header class="main-header " style="background-image: url(/my_technology/images/user.jpg)">

    <nav class="main-nav overlay clearfix">
        
            <a class="blog-logo" href="/my_technology/"><img src="/my_technology/images/user.png" alt="Blog Logo" /></a>
        
        
    </nav>
<div class="vertical">
        <div class="main-header-content inner">
            <h1 class="page-title">
              <a class="btn-bootstrap-2" href="#content">我的博客</a>
          </h1>
          <h2 class="page-description">这里是付佳康的个人博客</h2>
        </div>
</div>
    <a class="scroll-down icon-arrow-left" href="#content"><span class="hidden">Scroll Down</span></a>
</header>

  <main id="content" class="content" role="main">


  <article class="post ">

    <header class="post-header">
        <h1 class="post-title">Jmeter</h1>
        <section class="post-meta">
        
         
        </section>
    </header>

    <section class="post-content">
      <pre><code>在测试计划下，添加线程组：
    线程住作用如下
</code></pre><p><img src="../%E7%BA%BF%E7%A8%8B%E7%BB%84.png" alt="线程组"></p>
<pre><code>在线程组下取样器中，添加http请求：
    http请求作用如下
</code></pre><p><img src="../http%E8%AF%B7%E6%B1%82.png" alt="http请求"></p>
<pre><code>在线程组下监听器中，添加察看结果树：
    察看结果树作用如下
</code></pre><p><img src="../%E5%AF%9F%E7%9C%8B%E7%BB%93%E6%9E%9C%E6%A0%91.png" alt="察看结果树"></p>
<pre><code>在线程组下监听器中，添加聚合报告：
    汇总报告作用如下
</code></pre><p><img src="../%E8%81%9A%E5%90%88%E6%8A%A5%E5%91%8A.png" alt="聚合报告"></p>
<pre><code>在线程组下监听器中，添加汇总图：
    汇总图作用如下
</code></pre><p><img src="../%E6%B1%87%E6%80%BB%E5%9B%BE.png" alt="汇总图"></p>
<pre><code>在线程组下监听器中，添加图形结果：
    图形结果作用如下
</code></pre><p><img src="../%E5%9B%BE%E5%BD%A2%E7%BB%93%E6%9E%9C.png" alt="图形结果"></p>
<pre><code>在线程组下监听器中，添加用表格查看结果：
    用表格查看结果作用如下
</code></pre><p><img src="../%E8%A1%A8%E6%A0%BC%E6%9F%A5%E7%9C%8B%E7%BB%93%E6%9E%9C.png" alt="表格查看结果"></p>
<pre><code>在线程组下断言中，添加响应断言：
    响应断言作用如下
</code></pre><p><img src="../%E5%93%8D%E5%BA%94%E6%96%AD%E8%A8%80.png" alt="响应断言"></p>
<pre><code>在线程组下监听器中，添加断言结果：
    断言结果作用如下
</code></pre><p><img src="../%E6%96%AD%E8%A8%80%E7%BB%93%E6%9E%9C.png" alt="断言结果"></p>
<pre><code>参数化关联：
    动态获取的叫参数化，批量操作如下（也可以使用函数助手）：
        新建csv.txt文本或 ***.csv docx表格两种格式
        多个值用逗号隔开，如下图
        在线程组下配置元件中添加 csv data set config并设置，如下图
        最后将线程组中的线程数修改为与csv.txt中数量一致，点击运行，察看结果树会将不同参数进行http请求得到相应数据
    
</code></pre><p><img src="../csv%E6%96%87%E6%9C%AC.png" alt="csv文本">
<img src="../csvdata.png" alt="csvdata"></p>

    </section>


  <footer class="post-footer">


    
    <figure class="author-image">

        <a class="img" href="/my_technology/" style="background-image: url(/my_technology/images/user.png)"><span class="hidden">付佳康</span></a>
    </figure>
    

    <section class="author">

  <p>付佳康</p>
  

</section>


    
    <section class="share">
      <h4>Share this page</h4>
      <a class="icon-twitter" style="font-size: 1.4em" href="https://twitter.com/share?text=Jmeter&amp;url=%2fmy_technology%2f10%2f"
          onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
          <span class="hidden">Twitter</span>
      </a>
      <a class="icon-facebook" style="font-size: 1.4em" href="https://www.facebook.com/sharer/sharer.php?u=%2fmy_technology%2f10%2f"
          onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
          <span class="hidden">Facebook</span>
      </a>
      <a class="icon-google-plus" style="font-size: 1.4em" href="https://plus.google.com/share?url=%2fmy_technology%2f10%2f"
         onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
          <span class="hidden">Google+</span>
      </a>
    </section>
    

    
    
    

  </footer>
</article>

</main>
    <footer class="site-footer clearfix">
        <section class="copyright"><a href="">我的博客</a> </section>
        
        <section class="poweredby">Proudly generated by <a class="icon-hugo" href="https://gohugo.io">HUGO</a>, with <a class="icon-theme" href="https://github.com/syui/hugo-theme-air">hugo-theme-air</a> theme</section>
        
    </footer>
    </div>
    <script type="text/javascript" src="/my_technology/js/jquery.js"></script>
    <script type="text/javascript" src="/my_technology/js/jquery.fitvids.js"></script>
    <script type="text/javascript" src="/my_technology/js/index.js"></script>
    <script src="/my_technology/js/particles.min.js"></script>
    <script src="/my_technology/js/particles.js"></script>  

</body>
</html>

